﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using Bitis_KeToanThue_Pro_DungChung.Common;

namespace Bitis_KeToanThue_Pro.AccessDatabase
{
    class ChungTuChi
    {
        AccessData ac = new AccessData(1);
        public DataTable loadmact()
        {
            return ac.ftblDocDuLieuSP("sp_loadsochungtu", null);
        }
        public DataTable loadbophan()
        {
            return ac.ftblDocDuLieuSP("sp_loadbophan", null);
        }
        public DataTable loadtiente()
        {
            return ac.ftblDocDuLieuSP("sp_loadloaitien", null);
        }
        public DataTable loadtygia(DateTime ngayct, String tiente)
        {
            var arrpara = new SqlParameter[2];
            arrpara[0] = new SqlParameter("NgayCT", SqlDbType.DateTime);
            arrpara[1] = new SqlParameter("TienTe", SqlDbType.NVarChar);
            arrpara[0].Value = ngayct;
            arrpara[1].Value = tiente;
            return ac.ftblDocDuLieuSP("sp_loadtigia", arrpara);
        }
    }
}
